package com.site.wisdom_construction.service.integralSupermarketModule;

import com.site.wisdom_construction.dao.integralSupermarketModule.CommodityDao;
import com.site.wisdom_construction.entity.integralSupermarketModule.Commodity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2022/1/18
 * @Description
 */
@Service
public class CommodityService implements CommodityDao {
    @Autowired
    private CommodityDao commodityDao;


    @Override
    public int insertCommodity(Map map) {
        return commodityDao.insertCommodity(map);
    }

    @Override
    public int deleteCommodity(Map map) {
        return commodityDao.deleteCommodity(map);
    }

    @Override
    public int updateCommodity(Map map) {
        return commodityDao.updateCommodity(map);
    }

    @Override
    public List<Commodity> findCommodityByPage(Map map) {
        return commodityDao.findCommodityByPage(map);
    }

    @Override
    public long Total(Map map) {
        return commodityDao.Total(map);
    }
}
